package com.cdtye.shuoh.mapper.device;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.cdtye.shuoh.domain.device.entity.DeviceChannel;
import com.cdtye.shuoh.domain.device.vo.DeviceChannelVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * 设备通道 Mapper 接口
 * @author
 * @date 2022-12-21
 */
@Repository
public interface DeviceChannelMapper extends BaseMapper<DeviceChannel> {

    IPage<DeviceChannel> pageList(Page page, @Param("vo") DeviceChannelVo vo);

    DeviceChannel queryChannel(@Param("deviceIdentification") String deviceIdentification, @Param("channelId")String channelId);

    int cleanChannelsByDeviceId(@Param("deviceIdentification") String deviceIdentification);

    void startPlay(@Param("deviceIdentification") String deviceIdentification, @Param("channelId")String channelId, @Param("streamId")String streamId);

    void stopPlay(@Param("deviceIdentification") String deviceIdentification, @Param("channelId")String channelId);
}
